Conditions | 1 |
Paths | 1 |
Total Lines | 26 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | var gulp = require('gulp'), |
||
8 | gulp.task('default', function() { |
||
9 | return gulp.src(['index.js', 'src/ub.*.js']) |
||
10 | |||
11 | // combine |
||
12 | .pipe(concatAllFiles('combined.js')) |
||
13 | |||
14 | // save into bin |
||
15 | .pipe(renameFile('index.js')) |
||
16 | .pipe(gulp.dest('dist/node/universalbasics/')) |
||
17 | |||
18 | // remove all node.js stuff |
||
19 | .pipe(removeCode({ nodejs: true })) |
||
20 | |||
21 | // save a copy as index.js |
||
22 | .pipe(renameFile('universalbasics.js')) |
||
23 | .pipe(gulp.dest('dist/browser/')) |
||
24 | |||
25 | // uglify |
||
26 | .pipe(uglify()) |
||
27 | .on('error', function (err) { gutil.log(gutil.colors.red('[Error]'), err.toString()); }) |
||
28 | |||
29 | // save a copy as index.min.js |
||
30 | .pipe(renameFile('universalbasics.min.js')) |
||
31 | .pipe(gulp.dest('dist/browser/')); |
||
32 | |||
33 | }); |
||
34 | |||
37 | }); |